package com.seu.nic.component.service.impl;

import com.seu.nic.component.server.TcpServer;
import com.seu.nic.component.service.AdcService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 教职工基本信息 服务实现类
 * </p>
 *
 * @author wyd
 * @since 2024-04-22
 */
@Service
public class AdcServiceImpl implements AdcService, InitializingBean {

    TcpServer tcpServer = new TcpServer();

    public void broadcastMessage(String message){
        tcpServer.broadcast(message);
    }

    @Override
    public void afterPropertiesSet() {
         tcpServer = new TcpServer();
        tcpServer.startNettyServer(8999);
    }
}
